//-----------------------------------------------------------------------
// <copyright file="UserBase.cs" company="FetCo">
//     Copyright (c) FetCo. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ADESSA.Entities
{
	[Serializable]
	public class UserBase
	{
		
		#region Variable Declarations
		public static string _Table = "User";
		private long				userId = 0;
		private string				userName = string.Empty;
		private string				fullName = string.Empty;
		private string				password = string.Empty;
		private string				email = string.Empty;
		private string				address = string.Empty;
		private string				tel = string.Empty;
		private string				cell = string.Empty;
		private bool				enable = false;
		private string				description = string.Empty;
		private long				permissionId = 0;
		#endregion
		
		#region Constructors
		public UserBase() {}
		
		public UserBase (
			long userId,
			string userName,
			string fullName,
			string password,
			string email,
			string address,
			string tel,
			string cell,
			bool enable,
			string description,
			long permissionId)
		
		{
			this.userId = userId;
			this.userName = userName;
			this.fullName = fullName;
			this.password = password;
			this.email = email;
			this.address = address;
			this.tel = tel;
			this.cell = cell;
			this.enable = enable;
			this.description = description;
			this.permissionId = permissionId;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long UserId
		{
			get { return userId; }
			set { userId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string UserName
		{
			get { return userName; }
			set { userName = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string FullName
		{
			get { return fullName; }
			set { fullName = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Password
		{
			get { return password; }
			set { password = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Email
		{
			get { return email; }
			set { email = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Address
		{
			get { return address; }
			set { address = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Tel
		{
			get { return tel; }
			set { tel = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Cell
		{
			get { return cell; }
			set { cell = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool Enable
		{
			get { return enable; }
			set { enable = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Description
		{
			get { return description; }
			set { description = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long PermissionId
		{
			get { return permissionId; }
			set { permissionId = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum UserColumns
	{
		UserId,
		UserName,
		FullName,
		Password,
		Email,
		Address,
		Tel,
		Cell,
		Enable,
		Description,
		PermissionId
	}//End enum
}